class Block:
    def __init__(self):
        self.initPos = None
        self.endPos = None
        self.pid = None
    
    def size(self):
        return self.endPos - self.initPos +1
    
    def getPid(self):
        return self.pid
    
    def setPid(self,pid):
        self.pid = pid
    
    def setInitPos(self,initpos):
        self.initPos = initpos
        
    def setEndPos(self,endpos):
        self.endPos = endpos
        
    def getInitPos(self):
        return self.initPos
    
    def getEndPos(self):
        return self.endPos
    
